//
//  TeacherOfUserDataHotTopic.m
//  __PRODUCTNAME__
//
//  Created by Gollum on 16/09/20
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "TeacherOfUserDataHotTopic.h"
#import "Way_Type_SetOfTeacherUserDataHotTopic.h"

@implementation TeacherOfUserDataHotTopic
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"way_type_set"]) {
        NSMutableArray<Way_Type_SetOfTeacherUserDataHotTopic *> *mArrayOfWay_Type_SetOfTeacherUserDataHotTopic = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            Way_Type_SetOfTeacherUserDataHotTopic *way_Type_SetOfTeacherUserDataHotTopic = [Way_Type_SetOfTeacherUserDataHotTopic modelDic:dic];
            [mArrayOfWay_Type_SetOfTeacherUserDataHotTopic addObject:way_Type_SetOfTeacherUserDataHotTopic];
        }
        _way_type_set = mArrayOfWay_Type_SetOfTeacherUserDataHotTopic;
    }
}
- (void)setValue:(id)value forUndefinedKey:(nonnull NSString *)key{
    [super setValue:value forUndefinedKey:key];
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
}
+ (NSDictionary *)objectClassInArray{
    return @{@"way_type_set" : [Way_Type_SetOfTeacherUserDataHotTopic class]};
}

@end
